Skip to content

Conversation

llvmbot
Copy link
Member

@llvmbot llvmbot commented Sep 29, 2022

When checking the RHS of fdiv, we should set the SignBitOnly flag,
because a negative zero can become -Inf, which is ordered less
than zero.

Fixes llvm/llvm-project#58046.

Differential Revision: https://reviews.llvm.org/D134876
@llvmbot
Copy link
Member Author

llvmbot commented Sep 29, 2022

@rotateright @arsenm What do you think about merging this PR to the release branch?

@tru tru merged commit 77ff99c into release/15.x Sep 30, 2022
@tru tru deleted the nikic-backport-fdiv-fix branch September 30, 2022 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[InstSimplify] FP-related miscompile

3 participants